<template>
  <div class="navbar">
    <van-nav-bar
      :title="title"
      left-text=""
      right-text=""
      left-arrow
      @click-left="onClickLeft"
    />
  </div>
</template>

<script>
import { Tabbar, TabbarItem,NavBar,Icon,Burron,Toast } from 'vant'
import bus from "../common/bus.js";
export default {
  name:'NavBar',
  component:{
    NavBar,
  },
  created() {
    this.title = '商城'
  },
  data() {
    return {
      title:''
    }
    
  },
  methods:{
    onClickLeft() {
      console.log('123')
    }
  },
  mounted(){
     bus.$emit("title", this.title);
     bus.$emit('onClickLeft',this.onClickLeft);
  }

}
</script>

<style scoped>
.navbar {

}

</style>